import http from '@/utils/http'
import { LivenessType, ShowType } from '@/enums/constEnums'
import { LivenessDataList } from '@/api/liveness/types'

/**
 * @description 获取网站流量数据接口
 * @param searchParams
 */
export function getLivenessInfo(searchParams: {
  type: ShowType
  dateType: LivenessType // 0留存 1活跃
  dateRange: string[]
}) {
  return http.post<LivenessDataList[]>(
    `/admin/liveness/dashboard/info`,
    searchParams,
  )
}
